class SelectAreaListBean {
  int total;
  int size;
  int pages;
  int pageSize;
  List<SelectAreaListItem> list;

  SelectAreaListBean(Map data){
    List<SelectAreaListItem> newList = new List();

    data['list'].forEach((e) => newList.add(SelectAreaListItem.fromJson(e)));

    this.total = data['total'];
    this.size = data['size'];
    this.pageSize = data['pageSize'];
    this.list = newList;
  }

  @override
  String toString() {
    return 'SelectAreaListBean{total: $total, size: $size, pages: $pages, pageSize: $pageSize, list: $list}';
  }
}

class SelectAreaListItem {
  String addess;
  int alarmNum;
  String area;
  String city;
  String createBy;
  String createTime;
  String equipmentNo;
  String id;
  String latitude;
  String longitude;
  String name;
  String province;
  int status;
  String updateBy;
  String updateTime;

  SelectAreaListItem(
      {this.addess,
        this.alarmNum,
        this.area,
        this.city,
        this.createBy,
        this.createTime,
        this.equipmentNo,
        this.id,
        this.latitude,
        this.longitude,
        this.name,
        this.province,
        this.status,
        this.updateBy,
        this.updateTime});

  SelectAreaListItem.fromJson(Map<String, dynamic> json) {
    addess = json['addess'];
    alarmNum = json['alarmNum'];
    area = json['area'];
    city = json['city'];
    createBy = json['createBy'];
    createTime = json['createTime'];
    equipmentNo = json['equipmentNo'];
    id = json['id'];
    latitude = json['latitude'];
    longitude = json['longitude'];
    name = json['name'];
    province = json['province'];
    status = json['status'];
    updateBy = json['updateBy'];
    updateTime = json['updateTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['addess'] = this.addess;
    data['alarmNum'] = this.alarmNum;
    data['area'] = this.area;
    data['city'] = this.city;
    data['createBy'] = this.createBy;
    data['createTime'] = this.createTime;
    data['equipmentNo'] = this.equipmentNo;
    data['id'] = this.id;
    data['latitude'] = this.latitude;
    data['longitude'] = this.longitude;
    data['name'] = this.name;
    data['province'] = this.province;
    data['status'] = this.status;
    data['updateBy'] = this.updateBy;
    data['updateTime'] = this.updateTime;
    return data;
  }

  @override
  String toString() {
    return 'SelectAreaListItem{addess: $addess, alarmNum: $alarmNum, area: $area, city: $city, createBy: $createBy, createTime: $createTime, equipmentNo: $equipmentNo, id: $id, latitude: $latitude, longitude: $longitude, name: $name, province: $province, status: $status, updateBy: $updateBy, updateTime: $updateTime}';
  }
}